﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Gatheshop.Web.Plugin.Feedback.DAL;
using Gatheshop.Web.Plugin.Feedback.Model;
using System.Data;


namespace  Gatheshop.Web.Plugin.Feedback.BLL
{
    public class feedbackBLL
    {
        // Fields
        private readonly feedbackDAL dal = new feedbackDAL();

        // Methods
        public int Add(feedback model)
        {
            return this.dal.Add(model);
        }

        public bool Delete(int id)
        {
            return this.dal.Delete(id);
        }

        public bool Exists(int id)
        {
            return this.dal.Exists(id);
        }

        public DataSet GetList(int Top, string strWhere)
        {
            return this.dal.GetList(Top, strWhere);
        }

        public DataSet GetList(int pageSize, int pageIndex, string strWhere, string filedOrder, out int recordCount)
        {
            return this.dal.GetList(pageSize, pageIndex, strWhere, filedOrder, out recordCount);
        }

        public feedback GetModel(int id)
        {
            return this.dal.GetModel(id);
        }

        public bool Update(feedback model)
        {
            return this.dal.Update(model);
        }

        public void UpdateField(int id, string strValue)
        {
            this.dal.UpdateField(id, strValue);
        }
    }


}